.class public Lcom/xingbook/xingbook/d/a;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/xingbook/park/c/a/n;
.implements Lcom/xingbook/service/download/m;


# static fields
.field private static final a:I


# instance fields
.field private b:F

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/RelativeLayout;

.field private f:Landroid/view/View;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/view/View;

.field private i:Lcom/xingbook/xingbook/b/d;

.field private j:Lcom/xingbook/park/d/e;

.field private k:Landroid/app/Activity;

.field private l:Lcom/xingbook/xingbook/d/b;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    sget v0, Lcom/xingbook/park/c/a/y;->b:I

    sput v0, Lcom/xingbook/xingbook/d/a;->a:I

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;F)V
    .locals 9
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v8, -0x2

    const/high16 v4, 0x4288

    const/16 v7, 0x10

    const/4 v6, 0x0

    const v5, 0x7f0a001d

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v0, Lcom/xingbook/xingbook/d/b;

    invoke-direct {v0, p0}, Lcom/xingbook/xingbook/d/b;-><init>(Lcom/xingbook/xingbook/d/a;)V

    iput-object v0, p0, Lcom/xingbook/xingbook/d/a;->l:Lcom/xingbook/xingbook/d/b;

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object p1, p0, Lcom/xingbook/xingbook/d/a;->k:Landroid/app/Activity;

    iput p2, p0, Lcom/xingbook/xingbook/d/a;->b:F

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/n;->g()Lcom/xingbook/park/d/e;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/xingbook/d/a;->j:Lcom/xingbook/park/d/e;

    invoke-virtual {p0, p0}, Lcom/xingbook/xingbook/d/a;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setId(I)V

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v1, v7, :cond_0

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->a(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    const/high16 v1, 0x4316

    mul-float/2addr v1, p2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    invoke-virtual {p0, v2}, Lcom/xingbook/xingbook/d/a;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/view/View;

    invoke-direct {v2, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    const v3, 0x7f020280

    invoke-virtual {v2, v3}, Landroid/view/View;->setBackgroundResource(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    mul-float v3, v4, p2

    float-to-int v3, v3

    mul-float/2addr v4, p2

    float-to-int v4, v4

    invoke-direct {v2, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v3, 0x7

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v3, 0x6

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    invoke-virtual {v3, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    invoke-virtual {p0, v2}, Lcom/xingbook/xingbook/d/a;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/RelativeLayout;

    invoke-direct {v2, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0x8

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v3, 0x5

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v3, v2}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v2}, Lcom/xingbook/xingbook/d/a;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/view/View;

    invoke-direct {v2, v0}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v2, v7, :cond_1

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->c(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xc

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    invoke-virtual {v3, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/high16 v3, 0x41c0

    mul-float/2addr v3, p2

    invoke-virtual {v2, v6, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V

    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v2, v7, :cond_2

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->b(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_2
    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v3, 0x430e

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v3, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x4260

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/high16 v3, 0x4100

    mul-float/2addr v3, p2

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {p0, v2}, Lcom/xingbook/xingbook/d/a;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    sget v0, Lcom/xingbook/xingbook/d/a;->a:I

    int-to-float v0, v0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    invoke-virtual {v2, v6, v0, v6, v0}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    const v2, -0xcccccd

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    const/high16 v2, 0x41f0

    mul-float/2addr v2, p2

    invoke-virtual {v0, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setLines(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v1, v8}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/4 v1, 0x3

    invoke-virtual {v0, v1, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/xingbook/d/a;->addView(Landroid/view/View;)V

    return-void

    :cond_0
    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->a(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    :cond_1
    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->c(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1

    :cond_2
    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-static {p2}, Lcom/xingbook/park/ui/aa;->b(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_2
.end method

.method static synthetic a(Lcom/xingbook/xingbook/d/a;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    return-object v0
.end method

.method private a(I)V
    .locals 6

    const v5, 0x7f0a001d

    const/high16 v4, 0x4316

    iget v0, p0, Lcom/xingbook/xingbook/d/a;->b:F

    mul-float/2addr v0, v4

    float-to-int v0, v0

    iget v1, p0, Lcom/xingbook/xingbook/d/a;->b:F

    mul-float/2addr v1, v4

    rsub-int/lit8 v2, p1, 0x64

    int-to-float v2, v2

    mul-float/2addr v1, v2

    const/high16 v2, 0x42c8

    div-float/2addr v1, v2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    iget v3, p0, Lcom/xingbook/xingbook/d/a;->b:F

    mul-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v2, v3, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0x8

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/4 v3, 0x5

    invoke-virtual {v2, v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v3, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v3, v2}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v0, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sub-int v0, v1, v0

    iput v0, v2, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->f:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/xingbook/d/a;)Landroid/widget/RelativeLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->ag()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v2}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/xingbook/service/download/b;->d(Ljava/lang/String;)Lcom/xingbook/service/download/k;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1}, Lcom/xingbook/service/download/k;->b()I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/xingbook/d/a;->a(Ljava/lang/String;I)V

    :goto_0
    :pswitch_0
    return-void

    :cond_0
    packed-switch v0, :pswitch_data_0

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/xingbook/d/a;->a(Ljava/lang/String;I)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x6

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/xingbook/d/a;->a(Ljava/lang/String;I)V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/xingbook/d/a;->a(Ljava/lang/String;I)V

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_0
        :pswitch_1
        :pswitch_3
        :pswitch_1
        :pswitch_2
        :pswitch_0
    .end packed-switch
.end method

.method public a(Lcom/xingbook/b/n;IZ)V
    .locals 7

    const/16 v6, 0x8

    const/4 v4, 0x0

    if-eqz p1, :cond_0

    instance-of v0, p1, Lcom/xingbook/xingbook/b/a;

    if-eqz v0, :cond_0

    check-cast p1, Lcom/xingbook/xingbook/b/d;

    iput-object p1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0, v4}, Lcom/xingbook/xingbook/b/d;->d(Z)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->c:Landroid/widget/ImageView;

    const/4 v2, -0x1

    const/4 v3, 0x1

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZF)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->g:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->u()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->i()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->a()V

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->h:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0
.end method

.method public a(Ljava/lang/String;I)V
    .locals 4

    const v3, 0x7f080059

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->j:Lcom/xingbook/park/d/e;

    invoke-virtual {v0, p1}, Lcom/xingbook/park/d/e;->c(Ljava/lang/String;)I

    move-result v0

    const/4 v2, -0x1

    if-ne v0, v2, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/xingbook/service/download/b;->d(Ljava/lang/String;)Lcom/xingbook/service/download/k;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->b()I

    move-result p2

    invoke-virtual {v0}, Lcom/xingbook/service/download/k;->e()I

    move-result v0

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v2, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    :goto_1
    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v1, p2}, Lcom/xingbook/xingbook/b/d;->a(I)V

    packed-switch p2, :pswitch_data_0

    invoke-direct {p0, v0}, Lcom/xingbook/xingbook/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :cond_2
    move v0, v1

    goto :goto_1

    :pswitch_0
    invoke-direct {p0, v0}, Lcom/xingbook/xingbook/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const-string v1, "\u8bf7\u7a0d\u7b49\u00b7\u00b7\u00b7"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :pswitch_1
    invoke-direct {p0, v0}, Lcom/xingbook/xingbook/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const v1, 0x7f080056

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :pswitch_2
    invoke-virtual {p0, p1, v0}, Lcom/xingbook/xingbook/d/a;->b(Ljava/lang/String;I)V

    goto :goto_0

    :pswitch_3
    invoke-direct {p0, v0}, Lcom/xingbook/xingbook/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const v1, 0x7f080057

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const v1, 0x7f080058

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->l:Lcom/xingbook/xingbook/d/b;

    const/4 v1, 0x1

    const-wide/16 v2, 0x320

    invoke-virtual {v0, v1, v2, v3}, Lcom/xingbook/xingbook/d/b;->sendEmptyMessageDelayed(IJ)Z

    goto :goto_0

    :pswitch_5
    invoke-direct {p0, v0}, Lcom/xingbook/xingbook/d/a;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public a_()V
    .locals 0

    return-void
.end method

.method public a_(Ljava/lang/String;)V
    .locals 3

    const/16 v2, 0x8

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Lcom/xingbook/xingbook/b/d;->a(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->a()V

    goto :goto_0
.end method

.method public b(Ljava/lang/String;I)V
    .locals 3

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->j:Lcom/xingbook/park/d/e;

    invoke-virtual {v0, p1}, Lcom/xingbook/park/d/e;->c(Ljava/lang/String;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-direct {p0, p2}, Lcom/xingbook/xingbook/d/a;->a(I)V

    goto :goto_0
.end method

.method public b_(Ljava/lang/String;)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->j:Lcom/xingbook/park/d/e;

    invoke-virtual {v0, p1}, Lcom/xingbook/park/d/e;->c(Ljava/lang/String;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const-string v1, "\u8bf7\u7a0d\u7b49\u00b7\u00b7\u00b7"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public c(Ljava/lang/String;I)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->j:Lcom/xingbook/park/d/e;

    invoke-virtual {v0, p1}, Lcom/xingbook/park/d/e;->c(Ljava/lang/String;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const v1, 0x7f080059

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->d:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public getResType()I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->s()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/16 v0, 0x30

    goto :goto_0
.end method

.method public getTellStoryId()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->ag()I

    move-result v0

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    if-nez v0, :cond_2

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Ljava/lang/String;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    const/4 v1, 0x1

    if-ne v0, v1, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->c(Ljava/lang/String;)V

    goto :goto_0

    :cond_3
    const/4 v1, 0x4

    if-ne v0, v1, :cond_4

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/OpenBookAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.BOOK_ID"

    iget-object v2, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v2}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.TO_STORE"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/xingbook/d/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/xingbook/xingbook/d/a;->k:Landroid/app/Activity;

    iget-object v1, p0, Lcom/xingbook/xingbook/d/a;->i:Lcom/xingbook/xingbook/b/d;

    invoke-static {v0, v1}, Lcom/xingbook/c/t;->a(Landroid/content/Context;Lcom/xingbook/b/n;)V

    goto :goto_0
.end method
